package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.Date;

/**
 * app端文章数据库实体
 *
 * @author 11494
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/3/3 20:19:36
 */
@TableName("ap_article")
@Data
public class ApArticle {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    @TableField("author_id")
    private Long authorId;
    @TableField("author_name")
    private String authorName;
    @TableField("channel_id")
    private Long channelId;
    @TableField("channel_name")
    private String channelName;
    private Short layout;
    private Short flag;
    private String images;
    private String labels;
    private Integer likes;
    private Integer collection;
    private Integer comment;
    private Integer views;
    @TableField("province_id")
    private Long provinceId;
    @TableField("city_id")
    private Long cityId;
    @TableField("county_id")
    private Long countyId;
    @TableField("created_time")
    private Date createdTime;
    @TableField("publish_time")
    private Date publishTime;
    @TableField("sync_status")
    private Short syncStatus;
    private Short origin;
    @TableField("static_url")
    private String staticUrl;

}
